/*
 * Copyright (C) 2010 恒康信息科技有限公司
 * 版权所有
 */
package com.jjmmbb.dolist.ex;

import android.content.Context;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;

import com.jjmmbb.anydolist.R;

public class LoadingImage extends ImageView {

	public LoadingImage(Context context) {
		super(context);

		setImageResource(R.drawable.loading_icon);
		Animation anim = AnimationUtils.loadAnimation(context,
				R.anim.rotate_repeat);
		LinearInterpolator lir = new LinearInterpolator();
		anim.setInterpolator(lir);
		setAnimation(anim);
	}

}
